<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title>Document</title>
    <script src="/lib/vue.js"></script>
  </head>
  <body>
    <div id="app">
      10+20={{10+20}}
      <br />
      10>20:{{10>20 ? 'true':'false'}}
      <br />
      myname:{{myname}}<button @click="handleClick()">Change</button>
    </div>
    <script>
      var vm = new Vue({
        el: "#app",
        data() {
          return {
            myname: "vue.js",
          };
        },
        methods: {
          handleClick() {
            console.log("点击了按钮");
            this.myname = "Hello Vue!";
          },
        },
      });
    </script>
  </body>
</html>
